<!-- INCLUDE overall_header.html -->

<a name="maincontent"></a>

<h1>{L_TITLE}</h1>

<p>{L_TITLE_EXPLAIN}</p>

<!-- IF S_ERROR -->
	<div class="errorbox">
		<h3>{L_WARNING}</h3>
		<p>{ERROR_MSG}</p>
	</div>
<!-- ENDIF -->

<!-- IF CHAT_BANNED_LIST -->
<table cellspacing="1">
	<col class="row1" /><col class="row2" />
	<thead>
		<tr>
			<th>{L_CHAT_BAN_USERNAME}</th>
			<th>{L_CHAT_BAN_ACTIONS}</th>
		</tr>
	</thead>
	<tbody>
		<!-- IF not .banned -->
			<tr>
				<td class="row1" colspan="3" style="text-align: center;">{L_CHAT_NO_BANNED_USERS}</td>
			</tr>
		<!-- ENDIF -->
		<!-- BEGIN banned -->
		<tr>
			<td><strong>{banned.USERNAME}</strong></a></td>
			<td style="text-align: center;"><a href="{banned.U_USER_CHAT_UNBAN}">{L_CHAT_USER_UNBAN}</a></td>
		</tr>
		<!-- END banned -->
	</tbody>
</table>
<!-- ENDIF -->

<!-- IF CHAT_CHANNEL_LIST -->
<table cellspacing="1">
	<col class="row1" /><col class="row2" /><col class="row2" />
	<thead>
		<tr>
			<th>{L_CHAT_CHANNEL_NAME}</th>
			<th>{L_CHAT_CHANNEL_PASSWORD}</th>
			<th>{L_CHAT_CHANNEL_ACTIONS}</th>
		</tr>
	</thead>
	<tbody>
		<!-- IF not .channel_list -->
			<tr>
				<td class="row1" colspan="3" style="text-align: center;">{L_CHAT_NO_CHANNELS}</td>
			</tr>
		<!-- ENDIF -->
		<!-- BEGIN channel_list -->
		<tr>
			<td><strong>{channel_list.CHANNEL_NAME}</strong></a></td>
			<td style="text-align: center;">{channel_list.CHANNEL_PASSWORD}</td>
			<td style="text-align: center;"><a href="{channel_list.U_CHAT_CHANNEL_EDIT}">{L_CHAT_CHANNEL_EDIT}</a>, <a href="{channel_list.U_CHAT_CHANNEL_DELETE}">{L_CHAT_CHANNEL_DELETE}</a></td>
		</tr>
		<!-- END channel_list -->
	</tbody>
</table>
<!-- ENDIF -->

<!-- IF CHAT_CHANNEL_ADM -->
<!-- ENDIF -->

<!-- IF CHAT_CHANNEL_CREATE -->
<form id="acp_chat" method="post" action="{U_ACTION}">
	<fieldset>
		<dl>
			<dt><label for="channel_name">{L_CHAT_CHANNEL_NAME}:</label><br /><span>{L_CHAT_CHANNEL_NAME_EXPLAIN}</span></dt>
			<dd><input type="text" id="channel_name" name="channel_name" value="" /></dd>
		</dl>
		<dl>
			<dt><label for="channel_password">{L_CHAT_CHANNEL_PASSWORD}:</label><br /><span>{L_CHAT_CHANNEL_PASSWORD_EXPLAIN}</span></dt>
			<dd><input type="password" id="channel_password" name="channel_password" value="" /></dd>
		</dl>

		<p class="submit-buttons">
			<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
			<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
		</p>
		{S_FORM_TOKEN}
	</fieldset>
</form>
<!-- ENDIF -->

<!-- IF DISPLAY_VARS -->
<form id="acp_chat" method="post" action="{U_ACTION}">

<!-- BEGIN options -->
	<!-- IF options.S_LEGEND -->
		<!-- IF not options.S_FIRST_ROW -->
			</fieldset>
		<!-- ENDIF -->
		<fieldset>
			<legend>{options.LEGEND}</legend>
	<!-- ELSE -->

		<dl>
			<dt><label for="{options.KEY}">{options.TITLE}:</label><!-- IF options.S_EXPLAIN --><br /><span>{options.TITLE_EXPLAIN}</span><!-- ENDIF --></dt>
			<dd>{options.CONTENT}</dd>
		</dl>

	<!-- ENDIF -->
<!-- END options -->

<!-- IF S_AUTH -->
	<!-- BEGIN auth_tpl -->
		{auth_tpl.TPL}
	<!-- END auth_tpl -->
<!-- ENDIF -->

	<p class="submit-buttons">
		<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
		<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
	</p>
	{S_FORM_TOKEN}
</fieldset>
</form>
<!-- ENDIF -->

<!-- INCLUDE overall_footer.html -->